﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Portfolio.Entities;
using Portfolio.IViews.Common;

namespace Portfolio.IViews.Admin
{
    public interface IAdminArticlesView
    {        
        event EventHandler<EventArgs> LoadArticlesSortBySearch;
        event EventHandler<EventArgs> LoadFieldsSearch;
        event EventHandler<EventArgs> DeleteArticle;

        IList<ArtilcesGridV> ArticlesDataBind { set; }

        ArticleT Article { get; }

        string SortExpression { get; set; }
        string SortDirection { get; set; }

        string SearchTitle { get; }
        int? SearchCategories { get; }
        bool? SearchActive { get; }
        byte? SearchStatus { get; }

        bool IsArticleUpdated { set; }
        bool IsArticleDel { set; }
        bool IsArticleDelSel { set; }
        string PublishException { set; }

        DataSourceContainer CategoriesDataSource { set; }
        DataSourceContainer StatusDataSource { set; }        
        DataSourceContainer ActiveDataSource { set; }
        DataSourceContainer PageSizeDataSource { set; }        
    }
}
